<admintpl file="header" />
</head>
<body>
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
			<li class="active"><a href="javascript:;">充值记录</a></li>
			<!--<li><a href="{:U('AdminSaleManager/add',array('id'=>empty($item['id'])?'':$item['id']))}" target="_self">充值</a></li>-->
		</ul>
        <form class="well form-search" id="form_search" method="post" action="{:U('AdminSaleManager/recharge_bill')}">
            <select name="s_manager_id">
                <option value="">请选择上级消费机构</option>
                <foreach name="sale_manager_list" item="sitem">
                    <option value="{$sitem['id']}" <if condition="$s_manager_id == $sitem['id']">selected</if>>{$sitem.sale_manage_name}</option>
                </foreach>
            </select>

            <input type="text" name="s_start_time" id="s_start_time" value="<php> echo date('Y-m-d H:i',$s_start_time);</php>" class="js-datetime" placeholder="开始时间" >
            至
            <input type="text" name="s_end_time" id="s_end_time" value="<php> echo date('Y-m-d H:i',$s_end_time);</php>" class="js-datetime" placeholder="结束时间">
            <input type="submit" class="btn btn-primary" value="搜索" />
            <input type="hidden" name="s_download" id="s_download" value="0"/>
            <a class="btn btn-primary" style="float: right;margin-right:15px;margin-bottom:10px;" href="javascript:downloadExcel(1);">导出报表</a>

        </form>
		<form class="js-ajax-form" action="" method="post">

			<table class="table table-hover table-bordered table-list">
                <thead>
                <tr>
                    <th width="50">操作用户</th>
                    <th width="50">用户电话</th>
                    <th width="50">上级消费机构名称</th>
                    <th width="50">充值金额</th>
                    <th width="50">充值后余额</th>
                    <th width="50">状态</th>
                    <th width="50">创建时间</th>

                </tr>
                </thead>
                <foreach name="list" item="vo">
                    <tr>
                        <td>{$vo.user_nicename}</td>
                        <td>{$vo.user_phone}</td>
                        <td>{$vo.sale_manage_name}</td>
                        <td>{$vo.price}</td>
                        <td>{$vo.after_balance}</td>
                        <td>{$vo.status_label}</td>
                        <td>{:date("Y-m-d H:i:s",$vo['create_time'])}</td>
                    </tr>
                </foreach>

			</table>

			<div class="pagination">{$page}</div>
		</form>
	</div>
	<script src="__PUBLIC__/js/common.js?1"></script>
	<script>
		function refersh_window() {
			var refersh_time = getCookie('refersh_time');
			if (refersh_time == 1) {
				window.location = "{:U('AdminSaleManager/recharge_bill',$formget)}";
			}
		}

	</script>
</body>
</html>